package com.wutianyi.slf4j;

import org.apache.log4j.BasicConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MyApp
{
    static Logger logger = LoggerFactory.getLogger(MyApp.class);
    
    public static void main(String[] args)
    {
        //给root配置一个ConsoleAppender,PatternLayou 是%-4r [%t] %-5p %c %x - %m%n
        BasicConfigurator.configure();
        logger.info("Entering application");
        Bar bar = new Bar();
        bar.doIt();
        logger.info("Exiting application.");
        
    }
}
